package gateway.config.security.exception;

import lombok.Getter;
import lombok.Setter;
import org.springframework.security.access.AccessDeniedException;

/**
 * 在此填写类的用途、注意事项等
 *
 * @author 米泽鹏
 * @since 2021-08-08 1:48 上午
 */
@Getter
@Setter
public class CustomAccessDeniedException extends AccessDeniedException {

	/**
	 * 错误码
	 */
	private Integer code;

	public CustomAccessDeniedException(Integer code, String msg) {
		super(msg);
		this.code = code;
	}

}
